package com.example.demo.service;

import com.example.demo.mapper.PlatDrivingModelMapper;
import com.example.demo.model.PlatDrivingModel;
import com.github.pagehelper.PageHelper;

import tk.mybatis.mapper.entity.Example;
import tk.mybatis.mapper.entity.Example.Criteria;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class PlatDrivingModelService {

    @Autowired
    private PlatDrivingModelMapper platDrivingModelMapper;
 
    public PlatDrivingModel selectOne(Integer id){
    	PlatDrivingModel model = new PlatDrivingModel();
    	model.setId(id);
        return platDrivingModelMapper.selectOne(model);
    }
    
    public List<PlatDrivingModel> getPlatDrivingModels(){
        return platDrivingModelMapper.selectAll();
    }
         

}
